<template>
	<view>
		<view class="">
			<text>请设置你的支付密码</text>
			<u-code-input v-model="password" mode="box" dot @finish="SearchData()" :focus="true"></u-code-input>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				password:''
			}
		},
		methods: {
			SearchData(){
				this.$http({
					url:'/member/insPaymentPassword',
					data:{
						payPassword:this.password
					}
				}).then(res=>{
					if(res.data.data == true){
						uni.navigateBack({
							delta:5
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.u-code-input{
		justify-content: center;
		margin-top: 30rpx;
	}
	.u-button{
		width: 70%;
		margin-top: 100rpx;
	}
	text{
		margin-left: 20rpx;
	}
</style>